//  

#region

using System;
using System.ComponentModel;
using System.Windows;
using pushbomb.composite.core;

#endregion

namespace pushbomb.composite.widgetmodel
{
    public class WidgetViewModel : ViewModelBase

    {
        #region InnerContent Dependency Property

        /// <summary>
        /// InnerContent Dependency Property.
        /// </summary>
        public static readonly DependencyProperty InnerContentProperty =
            DependencyProperty.Register(
                "InnerContent",
                typeof (DependencyObject),
                typeof (WidgetViewModel), new PropertyMetadata(PropertyChangedCallback)
                );

        private static void PropertyChangedCallback(DependencyObject o, DependencyPropertyChangedEventArgs args)
        {
                ((WidgetViewModel)o).InvokePropertyChanged(new PropertyChangedEventArgs("InnerContent"));
        }

        /// <summary>
        /// 
        /// </summary>
        public DependencyObject InnerContent
        {
            get { return (DependencyObject) GetValue(InnerContentProperty); }
            set { SetValue(InnerContentProperty, value); }
        }

        #endregion

        /// <summary>
        /// Initializes a new instance of the <see cref="WidgetViewModel"/> class.
        /// </summary>
        /// <param name="fs">The fs.</param>
        /// <param name="v">The v.</param>
        public WidgetViewModel(IFrameworkServiceProvider fs, IView v)
            : base(fs, v)
        {
        }
    }
}